package cn.myjerry.decorator;

public class Client {
	public static void main(String[] args) {
		Car c = new Car();
		c.move();
		
		System.out.println("增加天上飞++++++++++++");
		FlyCar flyCar = new FlyCar(c);
		flyCar.move();
		
		System.out.println("增加水上游++++++++++++");
		WaterCar waterCar = new WaterCar(c);
		waterCar.move();
		
		System.out.println("自动跑、天上飞+++++++++");
		AiCar aiCar = new AiCar(flyCar);
		aiCar.move();
		
		
		
	}
}
